home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / autopark.zip / AUTOPARK.DOC < prev    next >
Text File  |  1986-05-03  |  2KB  |  52 lines

  1.  
  2. AUTOPARK -- a routine to park the fixed disk heads when the disks
  3.             are not in use.
  4.  
  5. One soon learns, after installing hard disks on a PC (or, at any rate,
  6. after READING about hard disks), that they are sensitive to vibration.
  7.  
  8. Staggering into the table on which a hard-disk-equipped PC is running
  9. can jar the disk sufficiently to damage information stored on the
  10. disk.  Even when the PC is turned off, IBM recommends that the heads
  11. of the hard disks be parked before moving the PC.
  12.  
  13. IBM provides a method of doing this, but only on the DIAGNOSTICS
  14. diskette.  I found this inconvenient.
  15.  
  16. AUTOPARK is executed only once, preferably in the AUTOEXEC.BAT at
  17. system startup.  For each of the two hard disks that you may have
  18. on your system, it does the following:
  19.  
  20.        1    Determines whether that hard disk is present.
  21.  
  22.        2    By trying each cylinder in turn, determines the highest-
  23.             numbered cylinder to which the disk can seek.  This is
  24.             the cylinder reserved as a PARKing place.  The first
  25.             version of AUTOPARK did this one cylinder at a time,
  26.             starting at cylinder 0.  The present version first does
  27.             it 100 cylinders at a time, then 10 cylinders at a time,
  28.             and finally one cylinder at a time.  On a Seagate 225
  29.             hard disk, this reduced the time from perhaps half a
  30.             minute per drive to perhaps half a second.
  31.  
  32.        3    Parks the head at that cylinder (it may be different for
  33.             the two drives if both are present; some people have
  34.             dissimilar drives -- for example, a 10 megabyte drive
  35.             and a 20 megabyte drive).
  36.  
  37.        4    Terminates and remains resident and thereafter rePARKS
  38.             the heads any time they have not been used for 30 seconds.
  39.  
  40. Thirty seconds seemed reasonable to me; but you can change it easily
  41. by examining the source and changing one constant.
  42.  
  43. The files supplied are:    AUTOPARK.DOC     this DOC file
  44.                            AUTOPARK.ASM     assembler source code
  45.                            AUTOPARK.COM     the executable module,
  46.                                             obtained by processing
  47.                                             AUTOPARK.ASM with the programs
  48.                                             MASM, LINK, and EXE2BIN.
  49.  
  50.                 Carl Hayes (SYSOP, NN5I BBS, 214-960-2730)
  51.  
  52.